import request from './index'


export function login(params) {
    return request({
        url: '/maap/account/login',
        method: 'post',
        data: params
    })
}
export function logout(params) {
    return request({
        url: '/maap/account/logout',
        method: 'get',
        params: params
    })
}

export function getUserInfo(params) {
    return request({
        url: '/maap/account',
        method: 'get',
        params: params
    })
}

export function getUserList(reqData) {
    return request({
        url: '/user/list/get',
        method: 'get',
        params: reqData
    })
}

//获取登录验证图
export function getCodeImage(params) {
    return request({
        url: '/maap/account/getImage',
        method: 'get',
        params: params
    })
}

export function toRegister(params) {
    return request({
        url: '/maap/account/register',
        method: 'post',
        data: params
    })
}
